import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import utils.LogUtil;
import utils.MailSender;

/**
 * Created by sealer on 17/04/19.
 */
public class Main {
    private static LogUtil logger = LogUtil.getInstance(Main.class);

    public static void main(String[] args) throws Exception {
        int i = 0;

        logger.error("error: sent from idea because of the error code logic");
        while (i++ < 50) {
            Thread.sleep(10);
            logger.debug("sealer=======+++++sealer");
        }

        /*String[] recipients = new String[] {"mysealer@163.com", "1178884049@qq.com", "azuresky52923@gmail.com", "liangshile@csii.com.cn"};

        MailSender.getInstance().send(recipients, "log error 报警", "sealer, 系统出错了， 快去看看啊。");
*/
    }
}
